package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 现场诊断记录对象 sys_company_diagnosis
 * 
 * @author ruoyi
 * @date 2023-09-11
 */
@ApiModel(value="现场诊断记录")
public class SysCompanyDiagnosis extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 现场诊断记录ID */
    @ApiModelProperty(value="现场诊断记录ID")
    private Long diagnosisId;

    /** 参诊企业编号 */
    @Excel(name = "参诊企业编号")
    @ApiModelProperty(value="参诊企业编号")
    private String companyNum;

    /** 现场记录编号 */
    @Excel(name = "现场记录编号")
    @ApiModelProperty(value="现场记录编号")
    private String recordNum;

    /** 诊断时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "诊断时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value="诊断时间")
    private Date diagnosisTime;

    /** 企业ID */
    @Excel(name = "企业ID")
    @ApiModelProperty(value="企业id")
    private Long deptId;

    /** 基础信息 */
    @Excel(name = "基础信息")
    @ApiModelProperty(value="基础信息")
    private String basisInfo;

    /** 领域信息 */
    @Excel(name = "领域信息")
    @ApiModelProperty(value="领域信息")
    private String domainInfo;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setDiagnosisId(Long diagnosisId)
    {
        this.diagnosisId = diagnosisId;
    }

    public Long getDiagnosisId()
    {
        return diagnosisId;
    }
    public void setCompanyNum(String companyNum) 
    {
        this.companyNum = companyNum;
    }

    public String getCompanyNum() 
    {
        return companyNum;
    }
    public void setRecordNum(String recordNum) 
    {
        this.recordNum = recordNum;
    }

    public String getRecordNum() 
    {
        return recordNum;
    }
    public void setDiagnosisTime(Date diagnosisTime)
    {
        this.diagnosisTime = diagnosisTime;
    }

    public Date getDiagnosisTime()
    {
        return diagnosisTime;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setBasisInfo(String basisInfo) 
    {
        this.basisInfo = basisInfo;
    }

    public String getBasisInfo() 
    {
        return basisInfo==null?"{}":basisInfo;
    }
    public void setDomainInfo(String domainInfo) 
    {
        this.domainInfo = domainInfo;
    }

    public String getDomainInfo() 
    {
        return domainInfo;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("diagnosisId", getDiagnosisId())
            .append("companyNum", getCompanyNum())
            .append("recordNum", getRecordNum())
            .append("diagnosisTime", getDiagnosisTime())
            .append("deptId", getDeptId())
            .append("basisInfo", getBasisInfo())
            .append("domainInfo", getDomainInfo())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
